import requests

class PublicInstitutionCivilServiceExamination:
    def __init__(self):
        pass

    def get_worker_info(self, zwdm):
        headers = {
            'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
            'Accept': '*/*',
            'Host': 'zp.cpta.com.cn',
            'Connection': 'keep-alive',
            'Content-Type': 'application/x-www-form-urlencoded'
        }
        url = "http://zp.cpta.com.cn/tyzpwb/stuchooseexam/getPositionInfo.htm"

        payload = {
            'zwdm': zwdm,
            'examid': '977b2dfccfd84e90'
        }

        response = requests.post(
            headers=headers,
            url=url,
            data=payload,
        )

        return response.text

    def get_public_worker_info(self, zwdm):
        pass